import { isLogin } from "./auth";
import type { RouteInterceptor } from "./navigator";

const routeInterceptor: Record<number, RouteInterceptor> = {
  1: {
    canNext: (permitType, _routePath, _query) => isLogin(),
    message: "您还没有登录呢，请先登录！",
    failToPath: "/sub-pages/login/index",
    confirmText: "去登录",
    cancelText: "暂不登录"
  } 
};
 

export default routeInterceptor;
